<template>
    <div class="snows" ref="control">
        <div class=" snows1 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows2 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows3 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows4 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows5 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows6 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows7 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows8 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows9 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>
        <div class="snows10 item">
            <img :src="snow" style="width: 100%;height: 100%" alt="">
        </div>

    </div>
</template>

<script setup lang="ts">
import snow from "@/assets/svg/home/snow.svg"
import { onMounted, ref } from "vue";
const control = ref()

</script>

<style scoped lang="scss">
@keyframes downsonw {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }

    33% {
        transform: translateY(10vh) rotate(60deg);
        opacity: 0.7;
    }

    66% {
        transform: translateY(50vh) rotate(120deg);
        opacity: 0.5;
    }

    100% {
        transform: translateY(60vh) rotate(180deg);
        opacity: 0;
    }
}


.snows {
    position: absolute;
    width: 100px;
    top: 0;
    height: 10vh;
    display: flex;

    .item {
        position: absolute;
        width: 5vw;
        height: 5vw;
        border-radius: 50%;
        filter: blur(1.5px);
        animation: downsonw 10s infinite linear,
    }

    .snows1 {
        width: 5vw;
        height: 5vw;
        left: 5vw;
        animation-duration: 15s;
    }

    .snows2 {
        width: 4vw;
        height: 4vw;
        left: 15vw;
        animation-duration: 12s;
    }

    .snows3 {
        width: 3vw;
        height: 3vw;
        left: 23vw;
        animation-duration: 8s;
    }

    .snows4 {

        left: 28vw;
        animation-duration: 13s;
    }

    .snows5 {
        width: 4vw;
        height: 4vw;
        left: 35vw;
        animation-duration: 7s;
    }

    .snows6 {
        width: 2vw;
        height: 2vw;
        left: 48vw;
        animation-duration: 12s;
    }

    .snows7 {

        left: 60vw;
        animation-duration: 9s;
    }

    .snows8 {
        width: 4vw;
        height: 4vw;
        left: 74vw;
        animation-duration: 12s;
    }

    .snows9 {
        left: 80vw;
        animation-duration: 8s;
    }



    .snows10 {
        width: 4vw;
        height: 4vw;
        left: 90vw;
        animation-duration: 13s;
    }


}
</style>